﻿<!DOCTYPE HTML>
<HTML>
<HEAD>
    <meta charset="utf-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <TITLE>授权登录</TITLE>
    <script src="https://g.alicdn.com/gdt/jsapi/1.9.9/index.js" type="text/javascript"></script>
    <script src="./js/jquery1.11.3.min.js" type="text/javascript"></script>
    <script src="./js/index.js" type="text/javascript"></script>
</HEAD>
<BODY style="background:#edf1f4;">
    @{
        var hd = "display:none;";
        var Logged = Yqd.Core.WxUser.LogonInfo == null ? 1 : 0;
        var url = Yqd.Core.WxUser.RedirectUrl;
        var bl = Logged == 0 && url == "";
        if (bl) { hd = ""; }
    }
    <script type="text/javascript">
        if (@Logged) {
            dd.getAuthCode().then((result) => {
                if (result) {
                    App.Post("/plus/yqd/WxUser/Login", result, (res) => {
                        if (!res.success) {
                            $("#tx").show();
                        } else {
                            window.location.href = res.url;
                        }
                    })
                }
            })
        } else {
            var fl= @(bl ? 0 : 1);
            if(fl) {
              window.location.href = '@url';
             }
        }
    </script>
    <div id="tx" style="position: absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);text-align:center;width:650px;background:#ffffff;padding-bottom:50px;border-radius:10px;@(hd)">
        <img src="/Client/Yqd/images/wffw.jpg" style="margin-top:50px;" />
        <div style="font-size:26px;font-family:Arial;padding-top:30px;">您所浏览的页面暂时无权访问</div>
        <div style="border:0.5px solid #f0f0f0;margin:20px 40px 30px 40px;"></div>
        <div style="font-size:20px;font-family:Arial;color:#a4a4a4;margin-bottom:30px;">尚未开通权限，请与管理员联系！</div>
        <a style="float:left;background:url(/Client/Yqd/images/bg_btn.png) no-repeat left center;width:213px;height:47px;color:#ffffff;font-size:16px;margin-right:20px;cursor:pointer;line-height:47px;margin-left:110px;" onclick="window.location.reload();">刷新页面</a><a style="float:left;background:url(/Client/Yqd/images/bg_btn.png) no-repeat left center;width:213px;height:47px;line-height:47px;color:#ffffff;font-size:16px;cursor:pointer;" onclick="window.close()">关闭页面</a>
    </div>



</BODY>
</HTML>
